import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { EnumRejectReasonType } from './rejectReason.enum';

@Entity()
export class RejectReason {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'type' })
  type: EnumRejectReasonType;

  @Column({ name: 'reason' })
  reason: string | undefined | null;

  @Column({ name: 'create_time' })
  create_time: Date;

  @Column({ name: 'key' })
  key: string;
  
}
